package com.lifeng.shop.lifengshop.mapper;

import com.lifeng.shop.lifengshop.pojo.entry.Comment;
import com.lifeng.shop.lifengshop.pojo.vo.ProductCommentVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommentMapper {
    int deleteByPrimaryKey(Integer cid);

    int insert(Comment record);

    int insertSelective(Comment record);

    Comment selectByPrimaryKey(Integer cid);

    int updateByPrimaryKeySelective(Comment record);

    int updateByPrimaryKey(Comment record);

    Comment selectByUidAndGid(Integer uid,Integer gid);

    List<ProductCommentVO> selectByGid(Integer gid);
}